<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<title>Insert title here</title>
<!-- 富文本编辑器 js引入-->
<script type="text/javascript" charset="utf-8"
	th:src="@{/ueditor/ueditor.config.js}"></script>
<script type="text/javascript" charset="utf-8"
	th:src="@{/ueditor/ueditor.all.min.js}">
	
</script>
<!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
<!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
<script type="text/javascript" charset="utf-8"
	th:src="@{/ueditor/lang/zh-cn/zh-cn.js}"></script>
<script th:src="@{/layui/jquery.min.js}"></script>
<script th:src="@{/layui/layui.js}"></script>
<script type="text/javascript" th:src="@{/common.js}"></script>
<link rel="stylesheet" th:href="@{/layui/css/layui.css}">
<script type="text/javascript">
$(document).ready(function(){
	var height = $(window).height();
	$("#addDiv").css({"height":height});
});
window.onresize = function(){
	var height = $(window).height();
	$("#addDiv").css({"height":height});
}
</script>
<style type="text/css">
.layui-input-inline span{
	line-height: 36px;
}
.layui-input-inline{
	height: 36px;
}
</style>
</head>
<body class="layui-layout-body">
	<div id="addDiv" align="center" style="overflow:auto;">
		<div style="margin-top: 50px;">
			<form id="addForm" class="layui-form layui-form-pane"
				th:action="@{/functional/edit}" method="post">
				<input name="id" value="" style="display: none" th:value="${data != null ? data.id : ''}">
				<div class="layui-form-item">
					<div class="layui-input-block">
						<label class="layui-form-label">小区名称</label>
						<div class="layui-input-inline">
							<span th:text="${data != null ? data.villageName : ''}"></span>
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<label class="layui-form-label">楼门号</label>
						<div class="layui-input-inline">
							<span th:text="${data != null ? data.buildingNumber : ''}"></span>
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<label class="layui-form-label">门牌号</label>
						<div class="layui-input-inline">
							<span th:text="${data != null ? data.doorNumber : ''}"></span>
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<label class="layui-form-label">上传的图片</label>
						<div class="layui-input-inline" style="height:50px;">
							<img th:src="${data != null && data.image != null ? data.image : ''}" onclick="previewImg(this)"
								style="width: 50px; height: 50px;" />
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<label class="layui-form-label">提交人</label>
						<div class="layui-input-inline">
							<span th:text="${data != null ? data.userName : ''}"></span>
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<label class="layui-form-label">提交时间</label>
						<div class="layui-input-inline">
							<span th:text="${data != null ? data.createTime : ''}" class="date"></span>
						</div>
					</div>
				</div>
				<div class="layui-form-item" th:if="${deal == null}">
					<div class="layui-input-block">
						<label class="layui-form-label"><span style="color: #f00;">*</span>处理方式1</label>
						<div class="layui-input-inline" style="width: 400px;" align="left">
							<input type="radio" name="status" title="通过审核" th:checked="${data != null && data.status == 1}" value="1" checked="checked"/>
							<input type="radio" name="status" title="未通过审核" th:checked="${data != null && data.status == 2}" value="2"/>
						</div>
					</div>
				</div>
				<div class="layui-form-item" th:if="${deal != null}">
					<div class="layui-input-block">
						<label class="layui-form-label"><span style="color: #f00;">*</span>处理方式</label>
						<div class="layui-input-inline" style="width: 400px;" align="left">
							<input type="radio" name="status" disabled="disabled" title="通过审核" th:checked="${data != null && data.status == 1}" value="1" checked="checked"/>
							<input type="radio" name="status" disabled="disabled" title="未通过审核" th:checked="${data != null && data.status == 2}" value="2"/>
						</div>
					</div>
				</div>
			</form>
		</div>
	</div>
</body>
</html>